﻿
par.model.controller('myctl', function ($scope, $http) {

    par.init($scope, $http);
    $scope.remove = function (index) {
        //下面这一行会被当成参数附加到URL后面，所以post请求最终会变成Home/Remove/?id=  
        var config = { params: { id: index.Id } };
        $http.post('Remove', "", config
        ).success(function (data) {
            par.init($scope, $http);
        }).error(function (data) {
            alert(data);
        });
    };
});
